.profile-box {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  overflow: auto;
}

.oc-image {
  align-content: center;
  justify-items: center;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.name-title {
    margin-bottom: -0.3rem;
}
.group-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;       
  background-color: #6c757d; 
  display: inline-block;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.group-icon:hover {
  transform: scale(1.1);       
  background-color: #495057; 
  cursor: pointer;
}

.bg-dark {
  background-color: #000 !important;
}

.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 40px 40px;
}

.profile-box-right h5 {
  margin-bottom: 0.5rem;
  flex-shrink: 0; /* keeps the heading fixed */
}

.profile-box-right {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.profile-info  {
  width: 100%;
  border-collapse: collapse;
}

.profile-info th {
  text-align: left;
  font-weight: 500;
  width: 30%;              /* keeps labels aligned */
  padding: 0rem 0.5rem;
}

.scroll-content {
  flex: 1;                /* take up remaining space */
  max-height: 400px;      /* set your desired max height */
  overflow-y: auto;       /* scroll only this section */
  scrollbar-width: thin; 
  scrollbar-color: rgba(0,0,0,0.2) transparent;
  padding-right: 0.5rem;
}

.universe-scroll {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem;
  scrollbar-width: thin; 
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.profile-box.universe-box {
  max-height: 200px;     /* set your desired max height */
  overflow-y: auto;      /* scrolls if content exceeds */
}